﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SiteAgle.Models
{
    /// <summary>
    /// 
    /// </summary>
    public class DataAccessSingleton
    {
        private static AgleEntities entities;
        private static string teste;

        private DataAccessSingleton() { }

        /// <summary>
        /// Gets the entities.
        /// </summary>
        public static AgleEntities Entities
        {
            get {
                if (entities == null) 
                {
                    entities = new AgleEntities();
                   
                }
                return entities;
                //return new AgleEntities();
            }
        }

    }
}